lcWndDrwGet Home

Returns a handle of drawing object by its index.

 HANDLE lcWndDrwGet (
   HANDLE hLcWnd,
   int Index
 );

Parameters
hLcWnd
  Handle to a graphics window.
Index
  Index of a drawing. The value varies from zero to LC_PROP_WND_NUMDRW-1

Return Value

  Handle to a new drawing object.


Code sample:
void DemoEnumFiles (HANDLE hLcWnd)
{
  HANDLE hDrw;
  int i, nDrws;
  WCHAR szFileName[260];

  nDrws = lcPropGetInt( hLcWnd, LC_PROP_WND_NUMDRW );
  for (i=0; i<nDrws; ++i){
    hDrw = lcWndDrwGet( hLcWnd, i );
    if (hDrw != 0){
      // get filename
      wcscpy( szFileName, lcPropGetStr( hDrw, LC_PROP_DRW_FILENAME ));
    }
  }
}